/*
 * Copyright (C) 2016 yixun All Rights Reserved.
 * 
 * BaseCodeValue.java
 */
package com.qiaofang.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.qiaofang.common.model.BaseDomain;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Data
@Entity
@Table(name = "sys_tm_base_code_value")
public class BaseCodeValue extends BaseDomain {

	@ApiModelProperty("主键")
	@Column(name = "id")
	private Long id;

	@ApiModelProperty("编码类型ID")
	@Column(name = "type_id")
	private Long typeId;
	/**
	 *编码名称
	 */
	@ApiModelProperty("编码名称")
	@Column(name = "code_name")
	private String codeName;
	/**
	 *编码值
	 */
	@ApiModelProperty("编码值")
	@Column(name = "code_value")
	private String codeValue;
	/**
	 *排序
	 */
	@ApiModelProperty("排序")
	@Column(name = "sort")
	private String sort;
	/**
	 *备注
	 */
	@ApiModelProperty("备注")
	@Column(name = "remark")
	private String remark;
	/**
	 *商户号
	 */
	@ApiModelProperty("商户号")
	@Column(name = "merchant_id")
	private Long merchantId;
	/**
	 *创建人
	 */
	@ApiModelProperty("创建人")
	@Column(name = "create_user_id")
	private Long createUserId;
	/**
	 *修改人
	 */
	@ApiModelProperty("修改人")
	@Column(name = "update_user_id")
	private Long updateUserId;
	/**
	 *是否删除:[{key:del_flag,values:[{no:0,alias:UNDEL,remark:否},{no:1,alias:DEL,remark:是}]}]
	 */
	@ApiModelProperty("是否删除")
	@Column(name = "del_flag")
	private String delFlag;

}
